package com.lwj.service.configuration;

import com.lwj.dto.configuration.UserRoleDto;
import com.lwj.dto.configuration.UserRoleListDto;
import com.lwj.model.configuration.UserRole;
import com.lwj.model.configuration.UserRoleKey;
import com.lwj.vo.PageBean;
import com.lwj.vo.configuration.UserPermissionVo;
import com.lwj.vo.configuration.UserRoleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserRoleService {
    int deleteByPrimaryKey(UserRoleKey key);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(UserRoleKey key);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);

    PageBean<UserRoleVo> getUserByRole(UserRoleListDto dto);

    void addUserToRole(UserRoleDto dto);

    void deleteUserRole(String departmentRoleId, String empId);

    List<UserPermissionVo> selectUserPermission(String empId,String permissionCode);
}
